/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sd.chat;

import java.io.Serializable;

/**
 *
 * @author Old
 */
public class TCPMsg implements Serializable {
    
    public MsgType type;
    public int size;
    public byte[] content;

    public TCPMsg(MsgType type, int size, byte[] content) {
        this.type = type;
        this.size = size;
        this.content = content;
    }

    public TCPMsg() {
        this.type = MsgType.POST;
        this.size = 0;
        this.content = new byte[0];
    }

    @Override
    public String toString() {
        return "TCPMsg{" + "type=" + type + ", size=" + size + ", content=" + content + '}';
    }
    
    
}
